From 05b48cc19b32b25daea9e2ef8a31a1a655bc3be2 Mon Sep 17 00:00:00 2001 From: maxlath Date: Fri, 10 Nov 2017 16:56:22 +0100 Subject: [PATCH] properties: added Mastodon address (wdt:P4033) --- server/controllers/entities/lib/properties.coffee | 2 ++ server/lib/wikidata/whitelisted_properties.coffee | 1 + 2 files changed, 3 insertions(+) diff --git a/server/controllers/entities/lib/properties.coffee b/server/controllers/entities/lib/properties.coffee index f5eb71137..ea6bffda8 100644 --- a/server/controllers/entities/lib/properties.coffee +++ b/server/controllers/entities/lib/properties.coffee @@ -149,6 +149,8 @@ properties = 'wdt:P2679': humanEntity # author of afterword 'wdt:P2680': humanEntity + # Mastodon address + 'wdt:P4033': externalId /^\w+@[a-z0-9\.\-]+[a-z0-9]+$/ whitelist = Object.keys properties diff --git a/server/lib/wikidata/whitelisted_properties.coffee b/server/lib/wikidata/whitelisted_properties.coffee index 13e589798..aa0ed7c48 100644 --- a/server/lib/wikidata/whitelisted_properties.coffee +++ b/server/lib/wikidata/whitelisted_properties.coffee @@ -65,4 +65,5 @@ module.exports = [ 'P2679' # author of foreword 'P2680' # author of afterword 'P2716' # collage image + 'P4033' # Mastodon address ]