renamed _movedTo_name to movedToName and documented its use.

This commit is contained in:
Tobias Schmidl 2024-11-08 12:09:56 +01:00
parent 803abfaf97
commit fee7d565f0
2 changed files with 2 additions and 3 deletions

View file

@ -20,6 +20,7 @@ ACTIVITYPUB_AUTHORS = {
'alice': { 'alice': {
'name': 'Alice', 'name': 'Alice',
'movedTo': 'https://fedi.example/users/alice', 'movedTo': 'https://fedi.example/users/alice',
'movedToName': '@alice@fedi.example',
'alsoKnownAs': ['https://fedi.example/users/alice'], 'alsoKnownAs': ['https://fedi.example/users/alice'],
'summary': 'Hi, I\'m Alice! Please follow me at @alice@fedi.example.', 'summary': 'Hi, I\'m Alice! Please follow me at @alice@fedi.example.',
'attachment': [ 'attachment': [

View file

@ -1,4 +1,3 @@
import datetime import datetime
import logging import logging
import json import json
@ -8,7 +7,6 @@ import pelican.writers
from pelican import signals from pelican import signals
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
@ -148,7 +146,7 @@ def ap_article(generator: pelican.ArticlesGenerator, writer: pelican.writers.Wri
tags.append({ tags.append({
'type': 'Mention', 'type': 'Mention',
'href': aa['movedTo'], 'href': aa['movedTo'],
'name': aa['_movedTo_name'] 'name': aa['movedToName']
}) })
cmap = {} cmap = {}
tmap = {} tmap = {}