renamed _movedTo_name to movedToName and documented its use.
This commit is contained in:
parent
803abfaf97
commit
fee7d565f0
2 changed files with 2 additions and 3 deletions
|
@ -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': [
|
||||||
|
|
|
@ -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 = {}
|
||||||
|
|
Loading…
Reference in a new issue