Github Mirror / telegraf-plugins: ef40b9c7




Strip commas from author names

Strip commas from author names

Commit ef40b9c7.

Authored 2023-10-18T08:43:16.000+01:00 by B Tasker in project Github Mirror / telegraf-plugins

+2 lines -2 lines

Commit Signature

Changes

diff --git a/webmention_io/webmention_io.py b/webmention_io/webmention_io.py
--- a/webmention_io/webmention_io.py
+++ b/webmention_io/webmention_io.py
# @@ -40,8 +40,8 @@ def build_lp(entry):
# ''' Build line protocol to describe the mention
# '''
#
# - author = entry['author']['name'].replace(' ', '\ ')
# - author_url = entry['author']['url'].replace('"', '')
# + author = entry['author']['name'].replace(' ', '\ ').replace(",", "")
# + author_url = entry['author']['url'].replace('"', '').replace(",", "")
#
# # Convert time to nanosecond epoch
# do = dt.datetime.strptime(entry['wm-received'], '%Y-%m-%dT%H:%M:%SZ')
#