good point, andrew #194

This commit is contained in:
rimu 2024-06-04 10:01:06 +12:00
parent f101a56fe2
commit f44a8dfedd
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -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))