-
Notifications
You must be signed in to change notification settings - Fork 0
CHANGELOG
bazbt3 edited this page Nov 18, 2017
·
1 revision
(Most recent on top.)
- Change avatar (a precursor to other file operations in v0.3.)
- Pushed goal of display of longer timelines back from v0.3 to v0.4.
News: The documentation is moving to GitHub Pages so might breakis of course temporarily borked.
- Added: -
- Changed: -
- Deprecated: -
- Removed:
import sys
- only used in my Python 2.7 catch-all exception handling. - Fixed: -
- Security: -
- Added: Display embedded images in posts. It's a bit slow and there is of course no caching.
- Added:
xp x-post
crosspost a new message created in a Patter chatroom as a post.
- Fixed: 'Get interactions' broke with a request for raw data; request removed.
- Added: Display one embedded image's indicator, URL and thumbnail URL, i.e. the app will not yet show an inline image; one must click the link. Probably buggy. (Tested initially using post 227199.)
- Changed:
createpost
does not allow an empty post to be sent. Perhaps a bit strict, thus not implemented elsewhere. - Changed: For replies: Reduced slashes to 1 for mentions other than the original poster. Confirms more closely to the pnut standard.
- Fixed: Better error handling: Started to target exceptions for cases where data doesn't exist, e.g.
KeyError
for accounts missing usernames and/or bio text. (Tested with accounts 175 and, a random choice of 171.)
The application is now Python 3.5-only. The 2.7 app was created due to ignorance when it initially failed. Adding import sys
fixed the fault in the noob catch-all-then-reset exception handlers. Note: the sys calls made simply aren't necessary in Python 3.5.
Python 3.5 application starts at v0.3.0 simply to differentiate from Python 2.
- Added: Moar spaghetti code.
- Changed: Increased listings from server-default 20 posts to a hardcoded 30. Not friendly yet, being displayed from earliest to latest and with no persistence, hence no version increase.
- Deprecated: Er… does all the Python 2.7 stuff count?
- Added: Chat channel names now appear in the Subscribed Channels listing, a major barrier passed thanks to @hutattedonmyarm's help! Bug: May break in the Get Channel routine.
- Fixed: Attributions: PNUTpy author: @33MHz, maintainer: @thrrgilag.
- Added: Inline display of thread when listing timeline. Bug: Exits current listing.
- Added: Check total length, including mentions, of post being replied to and force amendment if over-long. (Wastefully copies code from createpost routine.)
- Added: Channel type indicator,
chat
orpm
. - Changed: Menu items:
gt
now gets timeline,gth
gets thread.
- Added: Inline help: type
help
during post listings. Much tidier. See also changes for main menu update. Added: Subscribed channel list now has a[u]
unread status indicator and displays the username of the most recent message poster. - Added: Because the application is feature-complete and bug-free I added an ASCII art logo in the code.
- Changed: To redisplay the menu in the main routine type
help
instead ofmenu
. Changed to be consistent with inline interactions.
- Fixed: Main routine now calls the reply, bookmark and repost subroutines instead of exiting.
- Fixed: Partial fix: Inline menu character input now starts on next line on my phone. (Pythonista, iPhone 6, Menlo 14pt.)
- Added: Starting to add actions in-line with the post listing in global, timeline, mentions, thread and bookmarks. First up: reply to, repost and bookmark a post. It's a bit rough. And ugly. And buggy. The remainder of the actions are placeholders. (And still only 20 posts per listing.)
- Removed: Repeat display of post to be replied to, during preparation for inline interactions. (It was intended to allow the user to be certain of replying to the correct post).
- Removed: Superfluous jsondata variable.
- Added: Test for too-long post, only in 'createpost' routine at this stage.
- Changed: Tweaked the menu layout yet again.
- Fixed: Accidental duplication of
gt
menu option for both get timeline and get thread.
- Changed: More updates to menu, input requests made clearer.
- Removed: Accidental JSON display code from the getpost routine.
- Added: Automatic reply to all users mentioned in post (limited to 30 names.) No selection or manual edit just yet.
- Added: Subscribe to a public channel (chatroom.)
- Added: Menu now has current user's username.
- Changed: Menu order. I'm trying and failing to make it sensible (tm).
- Fixed: Channels and threads now display even when there are fewer than 20 items.
- Added: Get a user bio. Buggy!
- Changed: Increased number of Interactions from 1 to 20 (server default). Incomplete.
- Changed: Unified post and message status indicators.
- Removed: Reliance on user-entered user_id in 'me.txt' file. I read the API Resources > Users docs. It's "me" when authenticated!
- Added: Started User Interactions. Returns only last one at this stage.
- Added: Username to 'get channel' display.
- Changed: Updated menu yet again. Unified timeline display is now 't' (was u.)
- Added: The original poster's username is added to replies automatically now. Take care to check for other people before posting.
- Added/changed: Post and user status indicators:
- User id,
-
+f
= followed? -
+F
= follower? -
*
= bookmarked? -
rp
= reposted? -
id:
= post id, -
rep:
= replying to post, -
thd
= in thread.
- Changed: Tweaked post display order.
- Added: Display Global timeline (added after fix below.)
- Changed: Get hashtag command is now
gh
(wash
.) - Fixed: Deleted posts are skipped, app no longer exits when encountered.
- Added: Display Unified timeline.
- Added: Bug: Deleted posts in unified timeline exit the app.
- Changed: Bookmarks & mentions inquiries requiring a user id still default to requiring input, however pressing [return] inserts a user id saved in a user-created
me.txt
file. Temporary, perhaps. - Fixed: If server response is 201, PigPen now returns 'ok'.
News: Changed version numbering style from n.nn.n to n.n.n., e.g. 1.01.22 is now 1.1.22.
- Added: Get last 20 bookmarks. (No error handling if fewer than 20 exist.)
- Changed: Exiting now only requires lower case 'exit'.
- Added: List last 20 posts in a thread. (No error handling: app will exit with
list index out of range
for conversations with fewer than 20 posts.) - Added: List last 20 messages for a channel. (No error handling: app will exit with
list index out of range
for channels with fewer than 20 messages.) - Changed: Menu order, attempting a more intelligent grouping.
- Changed: Code: Created displaypost() subroutine to reduce duplication in similar routines.
- Fixed: If server response is not 200, PigPen now returns a purposely-ambiguous 'hmmm…' instead of 'oops!'
- Added: Listing of posts containing a specified hashtag (last 20.)
- Added: Create a message to send to a chatroom or private thread. Need to know the pre-existing channel number.
- Added: Subscribed channel listing. Returns only channel number, owner/creator and the most recent message with its id. See also next item.
- Added: Get a channel. Returns content for one post using code modified from above. Potentially useful as a subroutine?
- Changed: Code: Reordered routines: post, reply and message pushed together.
- Removed: pprint module import: I decided to examine JSON outside Pythonista.
- Added: Thread id to every displayed mention.
- Changed: Reversed mentions sort order: most recent is last, at the bottom of the list, onscreen.
- Added: Rudimentary mentions list display: the default number of 20 most recent, unsorted returned from the server with no parameters requested other than
user_id
. - Added mentions JSON file in examples folder.
- (Intermediate, breaking, local test versions omitted from release.)
- Fixed: Rudimentary feedback after interactions - anything other than '200' now doesn't kill the app. (I tried concatenating an integer and text, tsk!)
- Updated 'Get post' to show only the poster's username, post create date and post content. An improvement over the previous raw dump.
- Added rudimentary feedback after interactions - currently not those with displayed content.
- Added the ability to Follow a user (by number.)
- Started messing about with JSON for a later release; it's not going well.
- Added newlines in posts - temporary kludge using
\n
, input by user.
- Menu-based,
- Authorise with a single-user token saved in a plain text file - token generated at the pnut.io developer page,
- Post-related features:
- Post,
- Reply to a specific post number,
- Bookmark a specific post number,
- Repost a specific post number,
- Get a post's content (raw response from server; not pretty).
- Added documentation, but not yet /docs/.