User notification when Facebook-Connection is invalid #28
No reviewers
Labels
No labels
2018.09
2019.01
2019.03
2019.06
2019.09
2019.12
2020.03
2020.06
2020.09
2020.12
2021.03
2021.07
2021.09
2022.02
2022.06
2022.09
2022.12
2023.04
2023.05
2023.09
2024.03
2024.06
2024.09
2024.12
dependencies
Hackathon 2021
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-addons#28
Loading…
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Send a notification to the user if his/her FB-Connections became invalid (usualle after changing the FB-Password)
I have two concerns. First, we should mention the site name or URL somewhere in the body so that we know which site is having the problem. (You may have done this, but it wasn't obvious skimming through the patch).
The second is that I'm not sure we aren't protected against getting a lot of emails for the same event. I see you're setting a flag to say that the notification has been sent, but it looks as though this is cleared as soon as the notification is sent. It looks to me like it will keep happening on every communication between us and Facebook. We probably need to instead clear it only if we have made a successful connection since it was set. Or... turn the flag into a timestamp so that we send at most one message a day. Thoughts?
timestamping it some way would be smart, and do a check like every 2 hours or so, then you only have 12 times to check. or some sort of other interval checking. if there's some other stuff checking timestamped things, then 1 extra row or whatever won't matter. successful connection, i can see a potential for annoyance there too, as if it makes a successful cxn., and it fails for some other reason, it'll re-send it. or maybe that's what one wants?
I made some changes to the notification:
Your Facebook connection became invalid. Please Re-authenticate.
Hi Tobias Hößl,
The connection between your account on [url=###]Friendica @ Hoessl.eu[/url] and your Facebook-Account became invalid. This usually happens after you change your Facebook-password. To enable the connection again, you have to [url=###]re-authenticate the Facebook-connector[/url].
http://friendica.hoessl.eu/notify/view/111
Danke,
der Administrator von Friendica @ Hoessl.eu
One issue with the notification mail is that the notification-mail always embeds an avatar of the sender. In this context, an avatar IMHO does not really make much sense, as the system is the sender, therefore a somewhat broken image is shown. IMHO the best way to deal with this would be to modify the email_notify_html.tpl to only include the image code if an url is given for source_photo (same goes for source_link ...)
I think not having an image might break the html layout in the templates - I'll look closer. But you can provide $siteurl/images/person-80.jpg as a fallback.