Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions social-media/github/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,18 +240,14 @@ def github()
textview_h+="You have update in a pull request:"
textview_h+="- #{datanew[countout]['title']} by #{datanew[countout]['login']}. (#{datanew[countout]['url']})"
if(oldnotifications.find {|x| x["url"] == datanew[countout]['url'] }==nil)
textview_h+=" * NEW\n"
else
textview_h+="\n"
textview_h+=" * NEW"
end
end
if (type=="issues")
textview_h+="You have update in an issue:"
textview_h+="- #{datanew[countout]['title']} by #{datanew[countout]['login']}. (#{datanew[countout]['url']})"
if(oldnotifications.find {|x| x["url"] == datanew[countout]['url'] }==nil)
textview_h+=" * NEW\n"
else
textview_h+="\n"
textview_h+=" * NEW"
end
end
countout+=1
Expand Down Expand Up @@ -314,6 +310,7 @@ def github()
end
end
textview+=textview_n; texthtml+=textview_n
textview_n=""

if (oldfoll & foll != oldfoll)
textview+= "\nYou have lost some followers:\n\n\n"
Expand All @@ -330,6 +327,7 @@ def github()
end
end
textview+=textview_n; texthtml+=textview_n
textview_n=""

if (oldissues & issues != issues)
textview+= "\nNew issues have been assigned to you:\n\n"
Expand Down Expand Up @@ -370,7 +368,7 @@ def github()
end
end
textview+=textview_n; texthtml+=textview_n

textview_n=""

if (oldissues & issues != oldissues)
textview+= "\nSome issues have been unassigned from you:\n\n\n"
Expand Down