mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
random published date to avoid cake day associations
This commit is contained in:
parent
3b76c0fe46
commit
d718c2937b
1 changed files with 3 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
from datetime import timedelta
|
||||||
|
from random import randint
|
||||||
|
|
||||||
from flask import request, current_app, abort, jsonify, json, g, url_for, redirect, make_response
|
from flask import request, current_app, abort, jsonify, json, g, url_for, redirect, make_response
|
||||||
from flask_login import current_user
|
from flask_login import current_user
|
||||||
|
@ -278,6 +280,7 @@ def user_profile(actor):
|
||||||
}
|
}
|
||||||
if not main_user_name:
|
if not main_user_name:
|
||||||
actor_data['name'] = 'Anonymous'
|
actor_data['name'] = 'Anonymous'
|
||||||
|
actor_data['published'] = ap_datetime(user.created + timedelta(minutes=randint(-2592000, 2592000)))
|
||||||
if user.avatar_id is not None and main_user_name:
|
if user.avatar_id is not None and main_user_name:
|
||||||
actor_data["icon"] = {
|
actor_data["icon"] = {
|
||||||
"type": "Image",
|
"type": "Image",
|
||||||
|
|
Loading…
Add table
Reference in a new issue