mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-03-17 21:31:52 +01:00
minor updates to olas dvm
This commit is contained in:
parent
b553c9aa96
commit
b5c2fdd1e7
@ -33,7 +33,7 @@ class DicoverContentCurrentlyPopularGallery(DVMTaskInterface):
|
||||
last_schedule: int
|
||||
db_since = 3600
|
||||
db_name = "db/nostr_recent_gallery.db"
|
||||
min_reactions = 2
|
||||
min_reactions = 1
|
||||
personalized = False
|
||||
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_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.
|
||||
use_logger = True
|
||||
@ -34,7 +34,7 @@ def build_example_gallery(name, identifier, admin_config, options, image, cost=0
|
||||
"name": name,
|
||||
"picture": 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,
|
||||
"supportsEncryption": True,
|
||||
"acceptsNutZaps": dvm_config.ENABLE_NUTZAP,
|
||||
@ -71,13 +71,13 @@ def playground():
|
||||
|
||||
options_gallery = {
|
||||
"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
|
||||
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",
|
||||
admin_config=admin_config_global_gallery,
|
||||
options=options_gallery,
|
||||
|
Loading…
x
Reference in New Issue
Block a user