Skip to content
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 "flag as spam" button #253

Closed
ebarry opened this issue Feb 27, 2018 · 4 comments
Closed

Add "flag as spam" button #253

ebarry opened this issue Feb 27, 2018 · 4 comments

Comments

@ebarry
Copy link
Member

ebarry commented Feb 27, 2018

This issue is broken out from #252

What happened just before the problem occurred

Add a "flag as spam" button to all maps that all logged-in viewers can see, regardless if they are an admin or not.

This button should trigger a notification to the moderators group, worded something like "[person X] identified [this content](link to content) by [this person](link to person's mapknitter account PR to publiclab.org account????) as potentially being spam. Please review, thanks! If it is spam, please spam the content and ban the account"

If the content is not spam, what action to moderators need to take to remove the "flag" on this content? Something to figure out.

Relevant URLs

mapknitter.org

@jywarren
Copy link
Member

Code location to insert this link is here - would be a great first-timers issue!

<% if logged_in? && current_user.can_delete?(map) %><a href="/map/archive/<%= map.slug %>">Archive/Spam</a> | <% end %>

So we could insert this above that line:

<a rel="tooltip" title="Flag as spam." class="btn btn-sm btn-default" href="mailto:[email protected]?subject=Reporting+spam+on+MapKnitter&body=Hi,+I+found+this+map+that+looks+like+spam+or+needs+to+be+moderated:++http://mapknitter.org/maps/<%= map.slug %>+by+http://mapknitter.org/profile/<%= map.user.login %>+Thanks!">
  <i class="far fa-flag"></i>
</a>

@slippa91
Copy link

I would like to work on this issue. I am a "first-timer".

jywarren added a commit that referenced this issue Mar 1, 2018
issue #253 (also#252)  flag as spam - mapknitter/app/views/maps/_list.html.erb
@jywarren
Copy link
Member

jywarren commented Mar 1, 2018

Complete in #254! Thank you @slippa91 and also @ebarry !!

@jywarren jywarren closed this as completed Mar 1, 2018
@jywarren
Copy link
Member

jywarren commented Mar 1, 2018

We'd love to have a chance to work more with you! Do check out issues over at --

https://publiclab.github.io/community-toolbox/#r=all

jywarren added a commit to jywarren/mapknitter that referenced this issue Apr 6, 2019
* Contribute Dockerfile for working within a container

* Initial change made.

* .travis.yml

schema example

docker compose

more adjustmentes

new docker-compose

* slight adjustment to docker-compose.yml

* path fix

* bower.json

* bower.json openlayers

* bower.json openlayers tweak 2

* added rake

* Gemfile version tweak

* updated gemfile and Gemfile.lock

* bundle exec

* testing map map for only non-anonymous

* echoing gem list to debug

* rvm

* additional travis.yml tweaks

* Update .travis.yml

* Allow bundler to use system gems.

* Added mysql2 adapter dependency, tweaked database.yml and travis.yml

* Added mysql2 adapter, longer wait for db

* Update _list.html.erb

* Update _list.html.erb

* Update maps_controller.rb

* Update feeds_controller.rb

* Update Gemfile

* Update Gemfile

* Update .travis.yml

* Update database.yml.example

* recaptcha tweaks

* Update _list.html.erb

* Update routes.rb

* Update maps_controller.rb

* Update clean.builder

* Update clean.builder

* leaflet v1.0

* dockerfile fix

* updating to Leaflet 1.0, GoogleMutant tile layer, other tweaks

* js tweaks

* update gemfile recaptcha version

* Gemfile.lock

* unrelated tweaks

* Update Readme.md

Just a space for identifying syntax

* recaptcha fixes

* fixes

* Upgrade dependencies.

* updated paperclip

* issue publiclab#253 flag as spam

* integrate image-sequencer

* Update knitter2.html.erb

* Update bower.json

* Update show.html.erb

* Update show.html.erb

* Update show.html.erb

* Update bower.json

* modded button and prompt

* Update _list.html.erb

* API request handled for region-action

* more efficient spam redirect URL

* Update Map.js

* Update _login_form.html.erb

* Add files via upload

* Update README.md

* bower updated

* Map added

* Update index.html.erb

* Update _list.html.erb

* Update index.html.erb

* Update index.html.erb

* Changed width to full width .

* Added all layers from leaflet-environmental-layers

* Update bower.json

* Default Mapknitter Markers added

* Version updated for LEL .

* Full screen support added

* Update bower.json

* Create first timers issue template.md

* Create config.yml

* spam links in moderation feeds

* Add mapknitter to the help wanted link

Co-Authored-By: faithngetich <[email protected]>

* Replace the community link with the code.public link

Co-Authored-By: faithngetich <[email protected]>

* Update the first time only link to code.public

Co-Authored-By: faithngetich <[email protected]>

* Use the correct link to indicate where the code will be published

Co-Authored-By: faithngetich <[email protected]>

* Update index.html.erb

* Update bower.json

* Update bower.json

* Update bower.json

* Peg GoogleMutant layer to v0.7.0

see https://gitlab.com/IvanSanchez/Leaflet.GridLayer.GoogleMutant/issues/90 for the issue we encountered with `v0.7.1`

* [Security] Bump nokogiri from 1.8.1 to 1.9.1

Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.8.1 to 1.9.1. **This update includes security fixes.**
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md)
- [Commits](sparklemotion/nokogiri@v1.8.1...v1.9.1)

Signed-off-by: dependabot[bot] <[email protected]>

* Bump will_paginate from 3.0.7 to 3.1.6

Bumps [will_paginate](https://github.com/mislav/will_paginate) from 3.0.7 to 3.1.6.
- [Release notes](https://github.com/mislav/will_paginate/releases)
- [Commits](mislav/will_paginate@v3.0.7...v3.1.6)

Signed-off-by: dependabot[bot] <[email protected]>

* Cleanup (publiclab#313)

* initial cleanup

* export unit tests, basic

* map tests

* basic comment tests

* cleanup

* export functional tests

* fixes

* Update export.rb

* test fixes and further cleanup

* extra test

* trying again

* another unit test

* output errors?

* Update map_test.rb

* Update maps.yml

* Update tag_test.rb

* Bump rake from 10.5.0 to 12.3.2 (publiclab#286)

Bumps [rake](https://github.com/ruby/rake) from 10.5.0 to 12.3.2.
- [Release notes](https://github.com/ruby/rake/releases)
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)
- [Commits](ruby/rake@v10.5.0...v12.3.2)

Signed-off-by: dependabot[bot] <[email protected]>

* [Security] Bump i18n from 0.7.0 to 0.9.5 (publiclab#289)

Bumps [i18n](https://github.com/svenfuchs/i18n) from 0.7.0 to 0.9.5. **This update includes security fixes.**
- [Release notes](https://github.com/svenfuchs/i18n/releases)
- [Changelog](https://github.com/ruby-i18n/i18n/blob/master/CHANGELOG.md)
- [Commits](ruby-i18n/i18n@v0.7.0...v0.9.5)

Signed-off-by: dependabot[bot] <[email protected]>

* Bump rdiscount from 2.1.7.1 to 2.2.0.1 (publiclab#321)

Bumps [rdiscount](https://github.com/davidfstr/rdiscount) from 2.1.7.1 to 2.2.0.1.
- [Release notes](https://github.com/davidfstr/rdiscount/releases)
- [Changelog](https://github.com/davidfstr/rdiscount/blob/master/CHANGELOG.md)
- [Commits](davidfstr/rdiscount@2.1.7.1...2.2.0.1)

Signed-off-by: dependabot[bot] <[email protected]>

* Unit test warpable code (publiclab#331)

* tests for warpables, test to distort in ImageMagick

* file existence test

* make test folder

* demo file and copying

* delete demo image

* mkdir -p

* save_dimensions

* Bump recaptcha from 4.6.3 to 4.9.0 (publiclab#332)

Bumps [recaptcha](https://github.com/ambethia/recaptcha) from 4.6.3 to 4.9.0.
- [Release notes](https://github.com/ambethia/recaptcha/releases)
- [Changelog](https://github.com/ambethia/recaptcha/blob/master/CHANGELOG.md)
- [Commits](ambethia/recaptcha@v4.6.3...v4.9.0)

Signed-off-by: dependabot[bot] <[email protected]>

* Show only maps with at least one image in main listing

* Update Leaflet.DistortableImage version

* basic map unit tests (publiclab#334)

* basic map unit tests

* try to run entire map.run_export

* parameter consolidation

* Updates to customize rails / ruby and mySQL version compatibility  (publiclab#323)

* update time fixtures and override sql primary default keys

* Reset HEAD to first commit and reapply changes

* Finalize comments for customizations

* Changed a word

* update readme.md (publiclab#335)

solve the beginner issue of database

* Ruby upgrade to 2.4.4 (publiclab#320)

* ruby version update

* change in dockerfile

* version change to 2.4.4

* dockerfile fix

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* [Security] Bump i18n from 0.7.0 to 0.9.5 (publiclab#289)

Bumps [i18n](https://github.com/svenfuchs/i18n) from 0.7.0 to 0.9.5. **This update includes security fixes.**
- [Release notes](https://github.com/svenfuchs/i18n/releases)
- [Changelog](https://github.com/ruby-i18n/i18n/blob/master/CHANGELOG.md)
- [Commits](ruby-i18n/i18n@v0.7.0...v0.9.5)

Signed-off-by: dependabot[bot] <[email protected]>

* Bump rdiscount from 2.1.7.1 to 2.2.0.1 (publiclab#321)

Bumps [rdiscount](https://github.com/davidfstr/rdiscount) from 2.1.7.1 to 2.2.0.1.
- [Release notes](https://github.com/davidfstr/rdiscount/releases)
- [Changelog](https://github.com/davidfstr/rdiscount/blob/master/CHANGELOG.md)
- [Commits](davidfstr/rdiscount@2.1.7.1...2.2.0.1)

Signed-off-by: dependabot[bot] <[email protected]>

* Unit test warpable code (publiclab#331)

* tests for warpables, test to distort in ImageMagick

* file existence test

* make test folder

* demo file and copying

* delete demo image

* mkdir -p

* save_dimensions

* Bump recaptcha from 4.6.3 to 4.9.0 (publiclab#332)

Bumps [recaptcha](https://github.com/ambethia/recaptcha) from 4.6.3 to 4.9.0.
- [Release notes](https://github.com/ambethia/recaptcha/releases)
- [Changelog](https://github.com/ambethia/recaptcha/blob/master/CHANGELOG.md)
- [Commits](ambethia/recaptcha@v4.6.3...v4.9.0)

Signed-off-by: dependabot[bot] <[email protected]>

* Show only maps with at least one image in main listing

* Update Leaflet.DistortableImage version

* basic map unit tests (publiclab#334)

* basic map unit tests

* try to run entire map.run_export

* parameter consolidation

* Updates to customize rails / ruby and mySQL version compatibility  (publiclab#323)

* update time fixtures and override sql primary default keys

* Reset HEAD to first commit and reapply changes

* Finalize comments for customizations

* Changed a word

* update readme.md (publiclab#335)

solve the beginner issue of database

* ruby version update

* change in dockerfile

* version change to 2.4.4

* dockerfile fix

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* gemfile.lock update

* gemfile.lock update

* Fix map of maps (publiclab#354)

* add image urls to maps json (publiclab#352)

* add image urls to maps json

* Add tests for image urls

* Shortening docker image in ~30%

* Caching bundle, gathering env variables and using newer sintax

* Creating startup script and env file

* Improving travis CI configuration

* Switch to Yarn from Bower

Ref: publiclab#357

Co-authored-by: kaunair <[email protected]>

* Loading assets in production env

* Allow uglifier to interpret ES6, removing yarn-error.log

* updating to rails4.2.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants