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

Link to New User Profile page broken #2447

Closed
bronwen9 opened this issue Mar 8, 2018 · 9 comments
Closed

Link to New User Profile page broken #2447

bronwen9 opened this issue Mar 8, 2018 · 9 comments
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed

Comments

@bronwen9
Copy link

bronwen9 commented Mar 8, 2018

New user page:
https://publiclab.org/notes/Charlescollins83/03-08-2018/Charlescollins83 is unavailable.

They've made one post at: https://publiclab.org/notes/Charlescollins83/03-08-2018/tvi, which is in the moderation queue.

@jywarren
Copy link
Member

jywarren commented Mar 9, 2018

Hi, it looks like the profile link is wrong -- where did the link come from? Thanks for reporting! I think if we fix the link to https://publiclab.org/profile/Charlescollins83 we should be good 👍

@jywarren jywarren changed the title New User Profile page shows up as error Link to New User Profile page broken Mar 9, 2018
@jywarren jywarren added the bug the issue is regarding one of our programs which faces problems when a certain task is executed label Mar 9, 2018
@bronwen9
Copy link
Author

bronwen9 commented Mar 9, 2018 via email

@jywarren
Copy link
Member

jywarren commented Mar 9, 2018

I'm having some trouble finding the wrong link to identify the bad code -- if you could try to see where in the email the link was from we can fix it -- thanks, and no rush!

@jywarren
Copy link
Member

jywarren commented Mar 9, 2018

@bronwen9
Copy link
Author

bronwen9 commented Mar 9, 2018

The email came through the moderators list on March 7, SUbject was: [New Public Lab poster needs moderation] TVI

Content (copy/pasted from email)
First-time poster Charlescollins83 has submitted their first research note!
Please help to approve it or mark it as spam: https://publiclab.org/notes/Charlescollins83/03-08-2018/tvi
Approve or Spam
test
It has the following tags:
User Info

527011
Charlescollins83
charlescollins83@hotmail.com

I'll forward it to you as well. I feel like I've seen this occasionally before. Thanks!

@bronwen9
Copy link
Author

bronwen9 commented Mar 9, 2018

Ah! I just clicked on the profile again, and see that it is showing up now (maybe you fixed it?) I am going to go ahead and ban it, thanks!

@bronwen9
Copy link
Author

bronwen9 commented Mar 9, 2018

Ohh, wait, scratch that, now I remember that I don't think it's spam after all, but kind of wanted to check the profile to double check. The navigation just got weirder. When I clicked in to the username from the email it worked (and can view profile), but when I tried to click to the profile from the post it shows up as the error. Additionally, I can't reach the research note from the link in the profile.

collins83

Update: I approved the note and now the navigation has evolved.. I can link to the profile from the post.. maybe this is just something strange in how approval-pending posts appear?

@jywarren
Copy link
Member

jywarren commented Mar 9, 2018

Awesome! Found it! I can make a quick first-timers issue to fix it:

flash[:warning] = "First-time poster <a href='#{@node.author.name}'>#{@node.author.name}</a> submitted this #{time_ago_in_words(@node.created_at)} ago and it has not yet been approved by a moderator. <a class='btn btn-default btn-sm' href='/moderate/publish/#{@node.id}'>Approve</a> <a class='btn btn-default btn-sm' href='/moderate/spam/#{@node.id}'>Spam</a>"

@jywarren
Copy link
Member

jywarren commented Mar 9, 2018

Done! Thanks @bronwen9 -- #2470

@jywarren jywarren closed this as completed Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed
Projects
None yet
Development

No branches or pull requests

2 participants