-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add report spam link #344
Draft
Zodiac1978
wants to merge
10
commits into
master
Choose a base branch
from
issue-73-report-spam
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Add report spam link #344
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
eceb64e
Add report spam link
Zodiac1978 b83dba5
Fix localhost issue
Zodiac1978 d53187d
Fix minor comment nitpicks
schlessera 2160894
First work on report spam link feature
florianbrinkmann bab72cb
First work on report modal
e4b21e0
Add minifyjs of a11y-dialog.js
3bc3a87
Modal style improvements
28c0e3c
First work on REST endpoint
9371efa
Ongoing work on report spam feature
2feeeae
Add call to api.pluginkollektiv.org for spam reporting
florianbrinkmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.a11y-dialog-container, | ||
div[data-a11y-dialog-hide] { | ||
position: fixed; /* 1 */ | ||
top: 0; /* 1 */ | ||
right: 0; /* 1 */ | ||
bottom: 0; /* 1 */ | ||
left: 0; /* 1 */ | ||
} | ||
|
||
.a11y-dialog-container { | ||
z-index: 2; /* 1 */ | ||
display: flex; /* 2 */ | ||
} | ||
|
||
.a11y-dialog-container[aria-hidden="true"] { | ||
display: none; /* 1 */ | ||
} | ||
|
||
.a11y-dialog-container > div { | ||
width: 100%; | ||
} | ||
|
||
div[data-a11y-dialog-hide] { | ||
background-color: rgba(0, 0, 0, 0.35); /* 1 */ | ||
} | ||
|
||
.a11y-dialog-container .dialog-content { | ||
margin: auto; /* 1 */ | ||
z-index: 2; /* 2 */ | ||
position: relative; /* 2 */ | ||
background-color: white; /* 3 */ | ||
width: 312px; | ||
max-height: calc(100% - 100px); | ||
overflow: auto; | ||
top: 50px; | ||
padding: 1rem; | ||
box-sizing: border-box; | ||
box-shadow: 0 10px 10px rgba(0,0,0,.25); | ||
} | ||
|
||
.a11y-dialog-container .dialog-content > :first-child { | ||
margin-top: 0; | ||
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif; | ||
font-size: 24px; | ||
line-height: 1.4; | ||
} | ||
|
||
.asb-report-spam-button { | ||
white-space: nowrap; | ||
background: #007cba; | ||
color: #fff; | ||
text-decoration: none; | ||
text-shadow: none; | ||
outline: 1px solid transparent; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure about the GDPR implications, when we collect those values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already do this now. This is just a a helpful link to prefill the form.
But if we want to follow this path. My research says:
I think the legitimate interest in fighting spam outweighs the rights of any spammer (or false positive user). But I am not a lawyer. I try to ping someone from the community to have look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a legal point of view, I would have no problems with this.
In terms of data protection, this is possible without consent as it is within the context of a legitimate interest. (In the case of a legitimate interest, an opt-out option is required, but that is easily possible for the spammer, so you don't need to think of it.)
Also I don't see any major problems in terms of copyright law, because on the one hand, emails of this kind regularly do not have the necessary level of creation for copyright protection, on the other hand, the author has also consented to storage and processing by sending, because that is exactly the purpose of his mail.
So: just make it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @PraetorIM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going through the discussion here, I get the impression that we are only looking at whether we as the pluginkollektiv get the user's consent to get access to this data.
However, what we are doing here is giving immediate access to a third-party (Google) via these unencrypted URL values. The way I see it, we would also need to inform the user about which third-parties we'd also give access to this data and need the user's consent for that as well.
So, even if we say that we don't need consent in this case, we still need to let the user know about the third-parties involved, no?
@PraetorIM It's not clear to me whether you consider this (we're sending unencrypted user data via a URL to a Google application), so I'd be grateful for any further clarification you can provide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean with that?
This PR adds a link to every spam comment in the admin area which is a link called "Report to Antispam Bee" which is going to a Google Form page and prepopulates it with the data from the comment.
It is just an external link IMHO. Everyone can see where it goes. If I need to mention it in a data protection declaration, I would need to mention every external link to a non-EU website ... or not?
And to which data protection declaration should we add it? On the website where it is used? This would not be working out I think. And why should we add it to the comment form? It is just added in the admin area and it does not do anything in the frontend. And how should I provide an opt-out for a link? You click it or you don't click it. How can we opt-out there?
I think we are all not in the same boat and speak about completely different things here.
Maybe we can talk about this in a chat. Maybe in German. To get this sorted out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@schlessera @PraetorIM @websupporter I really would like to get 2.9.3 released soon. Any chance to get this legal question solved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First of all: The reporting of a URL is irrelevant in terms of data protection law, since a URL (apart from extreme exceptional cases) is not a personal date. Even a URL like firstname-lastname.de is initially without privacy problems (hard to believe in today's hysteria, I know). This would only become personal data if the person of the commentator / spammer was also transmitted. But that's not what you've planned. So just get that feature in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PraetorIM We are not just reporting an URL.
We are reporting what was entered as author name, e-mail and website url. Additionally the IP address used by the visitor, the host (for this IP), the content of the comment and the user agent used.
These values are send to a Google form via URL, so that the Google form is prepopulated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Torsten, melde dich einfach einmal bei mir, ehe wir hier noch eine Brieffreundschaft anfangen ;-)