diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index 19b728ea6..69a6f1561 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -365,6 +365,7 @@ FEATURES = { 'IP_LOGGING': False, 'BLOCK_MUTE_EXILE_EXPIRY': False, 'ACCOUNT_DELETION': True, + 'SONG_NOTIFICATIONS': True, } DEFAULT_PRONOUNS = None @@ -488,6 +489,7 @@ elif SITE_NAME == 'WPD': FEATURES['USERS_PERMANENT_WORD_FILTERS'] = False FEATURES['NSFW_MARKING'] = False FEATURES['HAT_SUBMISSIONS'] = False + FEATURES['SONG_NOTIFICATIONS'] = False TAGLINES = ( "people dying and cartoon cats <3", diff --git a/files/routes/settings.py b/files/routes/settings.py index 0cc5d3f9a..c9d480a38 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -31,6 +31,9 @@ from files.__main__ import app, cache, limiter 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:{new_song}" cid = notif_comment(text) follower_ids = (x[0] for x in g.db.query(Follow.user_id).filter_by(target_id=v.id).all())