mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
good point, andrew #194
This commit is contained in:
parent
f101a56fe2
commit
f44a8dfedd
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ def post_to_activity(post: Post, community: Community):
|
|||
"object": {
|
||||
"type": "Page",
|
||||
"id": post.ap_id,
|
||||
"attributedTo": post.author.profile_id(),
|
||||
"attributedTo": post.author.profile_id() if post.author.is_local() else post.author.ap_public_url,
|
||||
"to": [
|
||||
f"https://{current_app.config['SERVER_NAME']}/c/{community.name}",
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
|
|
|
@ -625,7 +625,7 @@ class User(UserMixin, db.Model):
|
|||
|
||||
ap_id = db.Column(db.String(255), index=True) # e.g. username@server
|
||||
ap_profile_id = db.Column(db.String(255), index=True) # e.g. https://server/u/username
|
||||
ap_public_url = db.Column(db.String(255)) # e.g. https://server/u/username
|
||||
ap_public_url = db.Column(db.String(255)) # e.g. https://server/u/UserName
|
||||
ap_fetched_at = db.Column(db.DateTime)
|
||||
ap_followers_url = db.Column(db.String(255))
|
||||
ap_preferred_username = db.Column(db.String(255))
|
||||
|
|
Loading…
Add table
Reference in a new issue