mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Include follow request list in speaker endpoint
							parent
							
								
									1f32747c5d
								
							
						
					
					
						commit
						999296a4fb
					
				|  | @ -478,7 +478,8 @@ def _showLocalBox(notifyJson: {}, boxName: str, | ||||||
| 
 | 
 | ||||||
|     sayStr = indent + boxName + ' posts ' + str(startPostIndex + 1) + \ |     sayStr = indent + boxName + ' posts ' + str(startPostIndex + 1) + \ | ||||||
|         ' to ' + str(startPostIndex + ctr) + '. ' |         ' to ' + str(startPostIndex + ctr) + '. ' | ||||||
|     sayStr += 'Use the \33[3mnext\33[0m and \33[3mprev\33[0m commands to navigate.' |     sayStr += \ | ||||||
|  |         'Use the \33[3mnext\33[0m and \33[3mprev\33[0m commands to navigate.' | ||||||
|     _sayCommand(sayStr, sayStr, screenreader, systemLanguage, espeak) |     _sayCommand(sayStr, sayStr, screenreader, systemLanguage, espeak) | ||||||
| 
 | 
 | ||||||
|     print('') |     print('') | ||||||
|  |  | ||||||
|  | @ -290,6 +290,7 @@ def _speakerEndpointJson(displayName: str, summary: str, | ||||||
|                          links: [], gender: str, postId: str, |                          links: [], gender: str, postId: str, | ||||||
|                          postDM: bool, postReply: bool, |                          postDM: bool, postReply: bool, | ||||||
|                          followRequestsExist: bool, |                          followRequestsExist: bool, | ||||||
|  |                          followRequestsList: [], | ||||||
|                          likedBy: str, published: str, postCal: bool, |                          likedBy: str, published: str, postCal: bool, | ||||||
|                          postShare: bool, themeName: str, |                          postShare: bool, themeName: str, | ||||||
|                          isDirect: bool) -> {}: |                          isDirect: bool) -> {}: | ||||||
|  | @ -310,6 +311,7 @@ def _speakerEndpointJson(displayName: str, summary: str, | ||||||
|             "dm": postDM, |             "dm": postDM, | ||||||
|             "reply": postReply, |             "reply": postReply, | ||||||
|             "followRequests": followRequestsExist, |             "followRequests": followRequestsExist, | ||||||
|  |             "followRequestsList": followRequestsList, | ||||||
|             "likedBy": likedBy, |             "likedBy": likedBy, | ||||||
|             "calendar": postCal, |             "calendar": postCal, | ||||||
|             "share": postShare |             "share": postShare | ||||||
|  | @ -492,6 +494,7 @@ def _postToSpeakerJson(baseDir: str, httpPrefix: str, | ||||||
|         postId = postJsonObject['object']['id'] |         postId = postJsonObject['object']['id'] | ||||||
| 
 | 
 | ||||||
|     followRequestsExist = False |     followRequestsExist = False | ||||||
|  |     followRequestsList = [] | ||||||
|     accountsDir = baseDir + '/accounts/' + nickname + '@' + domainFull |     accountsDir = baseDir + '/accounts/' + nickname + '@' + domainFull | ||||||
|     approveFollowsFilename = accountsDir + '/followrequests.txt' |     approveFollowsFilename = accountsDir + '/followrequests.txt' | ||||||
|     if os.path.isfile(approveFollowsFilename): |     if os.path.isfile(approveFollowsFilename): | ||||||
|  | @ -499,6 +502,7 @@ def _postToSpeakerJson(baseDir: str, httpPrefix: str, | ||||||
|             follows = fp.readlines() |             follows = fp.readlines() | ||||||
|             if len(follows) > 0: |             if len(follows) > 0: | ||||||
|                 followRequestsExist = True |                 followRequestsExist = True | ||||||
|  |                 followRequestsList = follows.split('\n') | ||||||
|     postDM = False |     postDM = False | ||||||
|     dmFilename = accountsDir + '/.newDM' |     dmFilename = accountsDir + '/.newDM' | ||||||
|     if os.path.isfile(dmFilename): |     if os.path.isfile(dmFilename): | ||||||
|  | @ -522,6 +526,7 @@ def _postToSpeakerJson(baseDir: str, httpPrefix: str, | ||||||
|                                 detectedLinks, gender, postId, |                                 detectedLinks, gender, postId, | ||||||
|                                 postDM, postReply, |                                 postDM, postReply, | ||||||
|                                 followRequestsExist, |                                 followRequestsExist, | ||||||
|  |                                 followRequestsList, | ||||||
|                                 likedBy, published, |                                 likedBy, published, | ||||||
|                                 postCal, postShare, themeName, |                                 postCal, postShare, themeName, | ||||||
|                                 isDirect) |                                 isDirect) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue