forked from MarseyWorld/MarseyWorld
remove song notifications on wpd
parent
78a066297d
commit
27977c4eaa
|
@ -365,6 +365,7 @@ FEATURES = {
|
||||||
'IP_LOGGING': False,
|
'IP_LOGGING': False,
|
||||||
'BLOCK_MUTE_EXILE_EXPIRY': False,
|
'BLOCK_MUTE_EXILE_EXPIRY': False,
|
||||||
'ACCOUNT_DELETION': True,
|
'ACCOUNT_DELETION': True,
|
||||||
|
'SONG_NOTIFICATIONS': True,
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFAULT_PRONOUNS = None
|
DEFAULT_PRONOUNS = None
|
||||||
|
@ -488,6 +489,7 @@ elif SITE_NAME == 'WPD':
|
||||||
FEATURES['USERS_PERMANENT_WORD_FILTERS'] = False
|
FEATURES['USERS_PERMANENT_WORD_FILTERS'] = False
|
||||||
FEATURES['NSFW_MARKING'] = False
|
FEATURES['NSFW_MARKING'] = False
|
||||||
FEATURES['HAT_SUBMISSIONS'] = False
|
FEATURES['HAT_SUBMISSIONS'] = False
|
||||||
|
FEATURES['SONG_NOTIFICATIONS'] = False
|
||||||
|
|
||||||
TAGLINES = (
|
TAGLINES = (
|
||||||
"people dying and cartoon cats <3",
|
"people dying and cartoon cats <3",
|
||||||
|
|
|
@ -31,6 +31,9 @@ from files.__main__ import app, cache, limiter
|
||||||
|
|
||||||
|
|
||||||
def _notify_followers_song_change(v, new_song):
|
def _notify_followers_song_change(v, new_song):
|
||||||
|
if not FEATURES['SONG_NOTIFICATIONS']:
|
||||||
|
return
|
||||||
|
|
||||||
text = f"@{v.username} has set a new profile song! :marseyjamming: \n\nYou can disable this notification by unfollowing them :marseysad:<hidden>{new_song}</hidden>"
|
text = f"@{v.username} has set a new profile song! :marseyjamming: \n\nYou can disable this notification by unfollowing them :marseysad:<hidden>{new_song}</hidden>"
|
||||||
cid = notif_comment(text)
|
cid = notif_comment(text)
|
||||||
follower_ids = (x[0] for x in g.db.query(Follow.user_id).filter_by(target_id=v.id).all())
|
follower_ids = (x[0] for x in g.db.query(Follow.user_id).filter_by(target_id=v.id).all())
|
||||||
|
|
Loading…
Reference in New Issue