mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Check that announces are from an identified account
							parent
							
								
									cd5af800c2
								
							
						
					
					
						commit
						84e4b1f5a5
					
				|  | @ -1454,6 +1454,13 @@ def individualPostAsHtml(translate: {}, \ | ||||||
|                     actorDomain,actorPort=getDomainFromActor(postJsonObject['actor']) |                     actorDomain,actorPort=getDomainFromActor(postJsonObject['actor']) | ||||||
|                     announcedJson = getJson(session,postJsonObject['object'],asHeader,None,projectVersion,httpPrefix,domain) |                     announcedJson = getJson(session,postJsonObject['object'],asHeader,None,projectVersion,httpPrefix,domain) | ||||||
|                     if announcedJson: |                     if announcedJson: | ||||||
|  |                         if not announcedJson.get('id'): | ||||||
|  |                             pprint(announcedJson) | ||||||
|  |                             return '' | ||||||
|  |                         if '/statuses/' not in announcedJson['id']: | ||||||
|  |                             return '' | ||||||
|  |                         if '/users/' not in announcedJson['id'] and '/profile/' not in announcedJson['id']: | ||||||
|  |                             return '' | ||||||
|                         if not announcedJson.get('type'): |                         if not announcedJson.get('type'): | ||||||
|                             pprint(announcedJson) |                             pprint(announcedJson) | ||||||
|                             return '' |                             return '' | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue