mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-10-09 23:02:34 +02:00
minor updates to olas dvm
This commit is contained in:
@@ -33,7 +33,7 @@ class DicoverContentCurrentlyPopularGallery(DVMTaskInterface):
|
|||||||
last_schedule: int
|
last_schedule: int
|
||||||
db_since = 3600
|
db_since = 3600
|
||||||
db_name = "db/nostr_recent_gallery.db"
|
db_name = "db/nostr_recent_gallery.db"
|
||||||
min_reactions = 2
|
min_reactions = 1
|
||||||
personalized = False
|
personalized = False
|
||||||
result = ""
|
result = ""
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@ from nostr_dvm.utils.nip89_utils import create_amount_tag, NIP89Config, check_an
|
|||||||
|
|
||||||
rebroadcast_NIP89 = True # Announce NIP89 on startup
|
rebroadcast_NIP89 = True # Announce NIP89 on startup
|
||||||
rebroadcast_NIP65_Relay_List = False
|
rebroadcast_NIP65_Relay_List = False
|
||||||
update_profile = False
|
update_profile = True
|
||||||
|
|
||||||
global_update_rate = 500 # set this high on first sync so db can fully sync before another process trys to.
|
global_update_rate = 500 # set this high on first sync so db can fully sync before another process trys to.
|
||||||
use_logger = True
|
use_logger = True
|
||||||
@@ -34,7 +34,7 @@ def build_example_gallery(name, identifier, admin_config, options, image, cost=0
|
|||||||
"name": name,
|
"name": name,
|
||||||
"picture": image,
|
"picture": image,
|
||||||
"image": image,
|
"image": image,
|
||||||
"about": "I show popular notes people put in their galleries",
|
"about": "I show popular notes from the Olas feed",
|
||||||
"lud16": dvm_config.LN_ADDRESS,
|
"lud16": dvm_config.LN_ADDRESS,
|
||||||
"supportsEncryption": True,
|
"supportsEncryption": True,
|
||||||
"acceptsNutZaps": dvm_config.ENABLE_NUTZAP,
|
"acceptsNutZaps": dvm_config.ENABLE_NUTZAP,
|
||||||
@@ -71,13 +71,13 @@ def playground():
|
|||||||
|
|
||||||
options_gallery = {
|
options_gallery = {
|
||||||
"db_name": "db/nostr_gallery.db",
|
"db_name": "db/nostr_gallery.db",
|
||||||
"db_since": 60 * 60 * 24 * 3, # 1h since gmt,
|
"db_since": 60 * 60 * 24 * 2, # 2d since gmt,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
cost = 0
|
cost = 0
|
||||||
image = "https://image.nostr.build/f5901156825ef1d9dad557890020ce9c5d917f52bc31863226b980fa232a9c23.png"
|
image = "https://image.nostr.build/f5901156825ef1d9dad557890020ce9c5d917f52bc31863226b980fa232a9c23.png"
|
||||||
discover_gallery = build_example_gallery("Popular Gallery Entries",
|
discover_gallery = build_example_gallery("Popular on Olas",
|
||||||
"discovery_gallery_entries",
|
"discovery_gallery_entries",
|
||||||
admin_config=admin_config_global_gallery,
|
admin_config=admin_config_global_gallery,
|
||||||
options=options_gallery,
|
options=options_gallery,
|
||||||
|
Reference in New Issue
Block a user