mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
not all the things
This commit is contained in:
parent
6ea0692bc1
commit
0e4e4ef00e
1 changed files with 2 additions and 2 deletions
|
@ -593,7 +593,7 @@ class User(UserMixin, db.Model):
|
||||||
if self.is_local():
|
if self.is_local():
|
||||||
return self.user_name
|
return self.user_name
|
||||||
else:
|
else:
|
||||||
return self.ap_id.lower()
|
return self.ap_id
|
||||||
|
|
||||||
def followers_url(self):
|
def followers_url(self):
|
||||||
if self.ap_followers_url:
|
if self.ap_followers_url:
|
||||||
|
@ -680,7 +680,7 @@ class User(UserMixin, db.Model):
|
||||||
|
|
||||||
def profile_id(self):
|
def profile_id(self):
|
||||||
result = self.ap_profile_id if self.ap_profile_id else f"https://{current_app.config['SERVER_NAME']}/u/{self.user_name}"
|
result = self.ap_profile_id if self.ap_profile_id else f"https://{current_app.config['SERVER_NAME']}/u/{self.user_name}"
|
||||||
return result.lower()
|
return result
|
||||||
|
|
||||||
def created_recently(self):
|
def created_recently(self):
|
||||||
return self.created and self.created > utcnow() - timedelta(days=7)
|
return self.created and self.created > utcnow() - timedelta(days=7)
|
||||||
|
|
Loading…
Add table
Reference in a new issue