plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Need Flag Option for Spam: Research Notes, comments, wiki pages

Open Zengirl2 opened this issue 9 years ago • 19 comments

I recently spotted a spam research note for an escort service. I didn't have the admin to delete it, but it would be great if there was a flag option. That way a reader could flag it so a moderator could take it down.

Zengirl2 avatar Jun 29 '17 22:06 Zengirl2

Thanks, Leslie! I was hoping we coudl do this pretty easily just by having the flag icon button go to:

mailto:[email protected]

We can reform this into a First-Timers-Only issue!

On Thu, Jun 29, 2017 at 6:51 PM, Leslie Birch [email protected] wrote:

I recently spotted a spam research note for an escort service. I didn't have the admin to delete it, but it would be great if there was a flag option. That way a reader could flag it so a moderator could take it down.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/1487, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ-2MK7IscR1A7aOarr8SVd66TANgks5sJCptgaJpZM4OJ9fX .

jywarren avatar Jun 30 '17 22:06 jywarren

Can we expand this to a "flag as spam" button on all content?

ebarry avatar Feb 27 '18 16:02 ebarry

let's add one-by-one follow-up tasks rather than expand this one, but yes!

On Tue, Feb 27, 2018 at 11:12 AM, Liz Barry [email protected] wrote:

Can we expand this to a "flag as spam" button on all content?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/1487#issuecomment-368932396, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ-Wak72tWFkXPENAT_NrgxlC6v4jks5tZCmKgaJpZM4OJ9fX .

jywarren avatar Feb 27 '18 16:02 jywarren

This could be done in multiple places, but to copy in code I prepared for a MapKnitter version of this:

<a rel="tooltip" title="Flag as spam." class="btn btn-sm btn-default" href="mailto:[email protected]?subject=Reporting+spam+on+Public Lab&body=Hi,+I+found+this+item+that+looks+like+spam+or+needs+to+be+moderated:++https://publiclab.org/n/<%= node.id %>+by+https://publiclab.org/profile/<%= node.author.username %>+Thanks!">
  <i class="far fa-flag"></i>
</a>

jywarren avatar Feb 27 '18 16:02 jywarren

Awesome, opened the first one for comments here: #2412

jywarren avatar Feb 27 '18 16:02 jywarren

These are now live on the dashboard. Adding this to comments as well by requesting a first-timers-only contributor:

https://github.com/publiclab/plots2/issues/2657

Once that's done, we could repeat this almost identically for comments on Answers, and on answers themselves:

Just after this line for Answers:

https://github.com/publiclab/plots2/blob/b56de9d1591c05f0cc35de95c1d7685938b4ec12/app/views/questions/_answer.html.erb#L16

And just after this line for Comments upon Answers:

https://github.com/publiclab/plots2/blob/b56de9d1591c05f0cc35de95c1d7685938b4ec12/app/views/questions/_comment.html.erb#L28

If anyone wants to get some practice making first-timers-only issues, this is a good place! @publiclab/reviewers @publiclab/soc

jywarren avatar Apr 26 '18 16:04 jywarren

Yes, these do look great on the dashboard -- thanks all! It would be great to break the rest of these issues out as described above ^^

ebarry avatar May 08 '18 17:05 ebarry

#2657 completed in https://github.com/publiclab/plots2/pull/2674 -- great! Let's repeat for the above.

@publiclab/soc would anyone like to take a look at #2657 as an example and build an almost identical one for flagging Answers or flagging Comments upon answers, as outlined above?

If you haven't created a first-timers-only issue yet, or would like a chance to create another, this is a good example, and you can see how a very similar one was created, claimed, and solved. 🎉 😄 🥇

I and the rest of @publiclab/reviewers would be happy to help you create a FTO issue and ensure it's well formatted. See these resources:


This has been marked as a good candidate for becoming a first-timers-only issue like these, meaning that it's simple, self-contained, and with some extra formatting, could be a great entry point for a new contributor. If you're familiar enough with this code, please consider reformatting or reposting it as a first-timers-only issue, and then ping @publiclab/reviewers to get it labelled. Or, if this is not your first time, try to solve it yourself!

jywarren avatar May 08 '18 22:05 jywarren

Hello, @jywarren I can help, but I am finishing some things this week, so I can commit to it only next week.

If someone else can work on this right away, go ahead, otherwise, I'll mark it to start next week. Is that okay? :)

stefannibrasil avatar May 10 '18 18:05 stefannibrasil

of course! Thank you!

On Thu, May 10, 2018 at 2:34 PM, Stefanni [email protected] wrote:

Hello, @jywarren https://github.com/jywarren I can help, but I am finishing some things this week, so I can commit to it only next week.

If someone else can work on this right away, go ahead, otherwise, I'll mark it to start next week. Is that okay? :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/1487#issuecomment-388144227, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ0YqvnguR34hjQ76TdBUrnILw9wtks5txIgigaJpZM4OJ9fX .

jywarren avatar May 10 '18 18:05 jywarren

Hi, @jywarren I created two new issues #2731 and #2732. What do you think? Also, I wans't able to add the labels to them, could you help me? :)

stefannibrasil avatar May 16 '18 20:05 stefannibrasil

Wow! Sorry, little late on this but looking now. Tremendous!

On Wed, May 16, 2018 at 1:09 PM, Stefanni [email protected] wrote:

Hi, @jywarren https://github.com/jywarren I created two new issues #2731 https://github.com/publiclab/plots2/issues/2731 and #2732 https://github.com/publiclab/plots2/issues/2732. What do you think? Also, I wans't able to add the labels to them, could you help me? :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/1487#issuecomment-389649352, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ8rcSAjWP5BckxHqivL3IKW9sg2jks5tzId0gaJpZM4OJ9fX .

jywarren avatar May 19 '18 04:05 jywarren

OK I invited you as a reviewer!!!

@Zengirl2 look at the great team pitching in to solve this! Thanks everybody!!!

jywarren avatar May 19 '18 04:05 jywarren

Awesome, thanks! :tada:

stefannibrasil avatar May 21 '18 18:05 stefannibrasil

Thanks everyone! Looking forward to a spam-free zone.

Zengirl2 avatar May 24 '18 21:05 Zengirl2

I'm marking this as a good candidate because folks looking to get involved can read over the original solution in #2657 which was completed in #2674, and reapply this to other places where we could use a flag button.

Can folks identify places where this is still needed? We can start linking to the corresponding templates and get this completely wrapped up!

jywarren avatar Sep 13 '18 20:09 jywarren

I think we need to link the related issues as we do. Eventhough gci folks are younger but they are smarter too. If they will need help they can just ping us.

SidharthBansal avatar Sep 14 '18 00:09 SidharthBansal

Hi all, I think the flag as spam button is active everywhere now.. wikis, questions, notes, comments, answers, and comments on answers

So I think we can close this Thanks

oorjitchowdhary avatar Dec 27 '18 16:12 oorjitchowdhary

Indeed, thank you!!

jywarren avatar Jan 03 '19 01:01 jywarren