forked from indymedia/epicyon
				
			Avoid duplicates
							parent
							
								
									e5993774af
								
							
						
					
					
						commit
						e8510d5385
					
				
							
								
								
									
										10
									
								
								daemon.py
								
								
								
								
							
							
						
						
									
										10
									
								
								daemon.py
								
								
								
								
							|  | @ -1264,7 +1264,9 @@ class PubServer(BaseHTTPRequestHandler): | ||||||
|                     mentionsList=inReplyToUrl.split('?') |                     mentionsList=inReplyToUrl.split('?') | ||||||
|                     for m in mentionsList: |                     for m in mentionsList: | ||||||
|                         if m.startswith('mention='): |                         if m.startswith('mention='): | ||||||
|                             replyToList.append(m.replace('mention=','')) |                             replyHandle=m.replace('mention=','') | ||||||
|  |                             if replyHandle not in replyToList: | ||||||
|  |                                 replyToList.append(replyHandle) | ||||||
|                         if m.startswith('page='): |                         if m.startswith('page='): | ||||||
|                             replyPageStr=m.replace('page=','') |                             replyPageStr=m.replace('page=','') | ||||||
|                             if replyPageStr.isdigit(): |                             if replyPageStr.isdigit(): | ||||||
|  | @ -1281,7 +1283,9 @@ class PubServer(BaseHTTPRequestHandler): | ||||||
|                     mentionsList=inReplyToUrl.split('?') |                     mentionsList=inReplyToUrl.split('?') | ||||||
|                     for m in mentionsList: |                     for m in mentionsList: | ||||||
|                         if m.startswith('mention='): |                         if m.startswith('mention='): | ||||||
|                             replyToList.append(m.replace('mention=','')) |                             replyHandle=m.replace('mention=','') | ||||||
|  |                             if m.replace('mention=','') not in replyToList: | ||||||
|  |                                 replyToList.append(replyHandle) | ||||||
|                         if m.startswith('page='): |                         if m.startswith('page='): | ||||||
|                             replyPageStr=m.replace('page=','') |                             replyPageStr=m.replace('page=','') | ||||||
|                             if replyPageStr.isdigit(): |                             if replyPageStr.isdigit(): | ||||||
|  | @ -1298,6 +1302,8 @@ class PubServer(BaseHTTPRequestHandler): | ||||||
|                     mentionsList=inReplyToUrl.split('?') |                     mentionsList=inReplyToUrl.split('?') | ||||||
|                     for m in mentionsList: |                     for m in mentionsList: | ||||||
|                         if m.startswith('mention='): |                         if m.startswith('mention='): | ||||||
|  |                             replyHandle=m.replace('mention=','') | ||||||
|  |                             if m.replace('mention=','') not in replyToList: | ||||||
|                                 replyToList.append(m.replace('mention=','')) |                                 replyToList.append(m.replace('mention=','')) | ||||||
|                         if m.startswith('page='): |                         if m.startswith('page='): | ||||||
|                             replyPageStr=m.replace('page=','') |                             replyPageStr=m.replace('page=','') | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue